Integrand size = 17, antiderivative size = 30 \[ \int \tan ^3(x) \sqrt {a+a \tan ^2(x)} \, dx=-\sqrt {a \sec ^2(x)}+\frac {\left (a \sec ^2(x)\right )^{3/2}}{3 a} \]
[Out]
Time = 0.11 (sec) , antiderivative size = 30, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 3, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.176, Rules used = {3738, 4209, 45} \[ \int \tan ^3(x) \sqrt {a+a \tan ^2(x)} \, dx=\frac {\left (a \sec ^2(x)\right )^{3/2}}{3 a}-\sqrt {a \sec ^2(x)} \]
[In]
[Out]
Rule 45
Rule 3738
Rule 4209
Rubi steps \begin{align*} \text {integral}& = \int \sqrt {a \sec ^2(x)} \tan ^3(x) \, dx \\ & = \frac {1}{2} a \text {Subst}\left (\int \frac {-1+x}{\sqrt {a x}} \, dx,x,\sec ^2(x)\right ) \\ & = \frac {1}{2} a \text {Subst}\left (\int \left (-\frac {1}{\sqrt {a x}}+\frac {\sqrt {a x}}{a}\right ) \, dx,x,\sec ^2(x)\right ) \\ & = -\sqrt {a \sec ^2(x)}+\frac {\left (a \sec ^2(x)\right )^{3/2}}{3 a} \\ \end{align*}
Time = 0.09 (sec) , antiderivative size = 20, normalized size of antiderivative = 0.67 \[ \int \tan ^3(x) \sqrt {a+a \tan ^2(x)} \, dx=\frac {1}{3} \sqrt {a \sec ^2(x)} \left (-3+\sec ^2(x)\right ) \]
[In]
[Out]
Time = 0.07 (sec) , antiderivative size = 29, normalized size of antiderivative = 0.97
method | result | size |
derivativedivides | \(\frac {\left (a +a \tan \left (x \right )^{2}\right )^{\frac {3}{2}}}{3 a}-\sqrt {a +a \tan \left (x \right )^{2}}\) | \(29\) |
default | \(\frac {\left (a +a \tan \left (x \right )^{2}\right )^{\frac {3}{2}}}{3 a}-\sqrt {a +a \tan \left (x \right )^{2}}\) | \(29\) |
risch | \(-\frac {2 \sqrt {\frac {a \,{\mathrm e}^{2 i x}}{\left ({\mathrm e}^{2 i x}+1\right )^{2}}}\, \left (3 \,{\mathrm e}^{4 i x}+2 \,{\mathrm e}^{2 i x}+3\right )}{3 \left ({\mathrm e}^{2 i x}+1\right )^{2}}\) | \(46\) |
[In]
[Out]
none
Time = 0.26 (sec) , antiderivative size = 18, normalized size of antiderivative = 0.60 \[ \int \tan ^3(x) \sqrt {a+a \tan ^2(x)} \, dx=\frac {1}{3} \, \sqrt {a \tan \left (x\right )^{2} + a} {\left (\tan \left (x\right )^{2} - 2\right )} \]
[In]
[Out]
\[ \int \tan ^3(x) \sqrt {a+a \tan ^2(x)} \, dx=\int \sqrt {a \left (\tan ^{2}{\left (x \right )} + 1\right )} \tan ^{3}{\left (x \right )}\, dx \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 276 vs. \(2 (24) = 48\).
Time = 0.51 (sec) , antiderivative size = 276, normalized size of antiderivative = 9.20 \[ \int \tan ^3(x) \sqrt {a+a \tan ^2(x)} \, dx=-\frac {2 \, {\left ({\left (3 \, \cos \left (5 \, x\right ) + 2 \, \cos \left (3 \, x\right ) + 3 \, \cos \left (x\right )\right )} \cos \left (6 \, x\right ) + 3 \, {\left (3 \, \cos \left (4 \, x\right ) + 3 \, \cos \left (2 \, x\right ) + 1\right )} \cos \left (5 \, x\right ) + 3 \, {\left (2 \, \cos \left (3 \, x\right ) + 3 \, \cos \left (x\right )\right )} \cos \left (4 \, x\right ) + 2 \, {\left (3 \, \cos \left (2 \, x\right ) + 1\right )} \cos \left (3 \, x\right ) + 9 \, \cos \left (2 \, x\right ) \cos \left (x\right ) + {\left (3 \, \sin \left (5 \, x\right ) + 2 \, \sin \left (3 \, x\right ) + 3 \, \sin \left (x\right )\right )} \sin \left (6 \, x\right ) + 9 \, {\left (\sin \left (4 \, x\right ) + \sin \left (2 \, x\right )\right )} \sin \left (5 \, x\right ) + 3 \, {\left (2 \, \sin \left (3 \, x\right ) + 3 \, \sin \left (x\right )\right )} \sin \left (4 \, x\right ) + 6 \, \sin \left (3 \, x\right ) \sin \left (2 \, x\right ) + 9 \, \sin \left (2 \, x\right ) \sin \left (x\right ) + 3 \, \cos \left (x\right )\right )} \sqrt {a}}{3 \, {\left (2 \, {\left (3 \, \cos \left (4 \, x\right ) + 3 \, \cos \left (2 \, x\right ) + 1\right )} \cos \left (6 \, x\right ) + \cos \left (6 \, x\right )^{2} + 6 \, {\left (3 \, \cos \left (2 \, x\right ) + 1\right )} \cos \left (4 \, x\right ) + 9 \, \cos \left (4 \, x\right )^{2} + 9 \, \cos \left (2 \, x\right )^{2} + 6 \, {\left (\sin \left (4 \, x\right ) + \sin \left (2 \, x\right )\right )} \sin \left (6 \, x\right ) + \sin \left (6 \, x\right )^{2} + 9 \, \sin \left (4 \, x\right )^{2} + 18 \, \sin \left (4 \, x\right ) \sin \left (2 \, x\right ) + 9 \, \sin \left (2 \, x\right )^{2} + 6 \, \cos \left (2 \, x\right ) + 1\right )}} \]
[In]
[Out]
none
Time = 0.26 (sec) , antiderivative size = 29, normalized size of antiderivative = 0.97 \[ \int \tan ^3(x) \sqrt {a+a \tan ^2(x)} \, dx=\frac {{\left (a \tan \left (x\right )^{2} + a\right )}^{\frac {3}{2}} - 3 \, \sqrt {a \tan \left (x\right )^{2} + a} a}{3 \, a} \]
[In]
[Out]
Time = 11.89 (sec) , antiderivative size = 19, normalized size of antiderivative = 0.63 \[ \int \tan ^3(x) \sqrt {a+a \tan ^2(x)} \, dx=-\frac {\sqrt {2}\,\sqrt {a}\,\left (6\,{\cos \left (x\right )}^2-2\right )}{3\,{\left (2\,{\cos \left (x\right )}^2\right )}^{3/2}} \]
[In]
[Out]